import App from './App.vue'
import router from './router'

import { getPlatformConfig } from './config'
import { MotionPlugin } from '@vueuse/motion'

import { createApp } from 'vue'

// 引入重置样式
import './style/reset.scss'
// // 导入公共样式
import './style/index.scss'
// // 一定要在main.ts中导入tailwind.css，防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
import './style/tailwind.css'
// import "element-plus/dist/index.css";
// // 导入字体图标
// import "./assets/iconfont/iconfont.js";
// import "./assets/iconfont/iconfont.css";

const app = createApp(App)

// 全局注册@iconify/vue图标库

getPlatformConfig(app).then(async (config) => {
  console.log(config)
  app.use(router)
  await router.isReady()

  app.use(MotionPlugin)
  // .use(PureDescriptions)
  // .use(useEcharts);
  app.mount('#app')
})
